package domain;

public class Architect extends Programmer {
    private  int stock;//股份

    public Architect() {
    }

    public Architect(int id, String name, int age, double sarlay, Equipment equipment, int stock) {
        super(id, name, age, sarlay, equipment);
        this.stock = stock;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }
    @Override
    public String toString() {
        /**
         *@作者:侯国威
         *@时间：2020/4/10_15:33
         *@描述: getDetails()=1	侯国威	22	3000.0前面四个信息
         */
        return getDetails()+"\t架构师\t"+getStatus()+"\t"+stock+"\t"+getEquipment();
    }
}
